
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>web前端 · Aivin开发笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Aivin">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="html5.html" />
    
    
    <link rel="prev" href="友情链接.html" />
    

    
        <link rel="shortcut icon" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    个人信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="友情链接.html">
            
                <a href="友情链接.html">
            
                    
                    友情链接
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3" data-path="js.html">
            
                <a href="js.html">
            
                    
                    web前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="html5.html">
            
                <a href="html5.html">
            
                    
                    html5
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.2" data-path="js.html">
            
                <a href="js.html">
            
                    
                    js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="css.html">
            
                <a href="css.html">
            
                    
                    css
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="JSX.html">
            
                <a href="JSX.html">
            
                    
                    JSX
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="CommonJS.html">
            
                <a href="CommonJS.html">
            
                    
                    CommonJS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="ES6.html">
            
                <a href="ES6.html">
            
                    
                    ES6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="mockjs.html">
            
                <a href="mockjs.html">
            
                    
                    mockjs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="ESLint.html">
            
                <a href="ESLint.html">
            
                    
                    ESLint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="alias.html">
            
                <a href="alias.html">
            
                    
                    alias
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="vueJS.html">
            
                <a href="vueJS.html">
            
                    
                    vueJS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="Vuex.html">
            
                <a href="Vuex.html">
            
                    
                    Vuex
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="vue-router.html">
            
                <a href="vue-router.html">
            
                    
                    vue-router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="vue-i18n.html">
            
                <a href="vue-i18n.html">
            
                    
                    vue-i18n
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14" data-path="element.html">
            
                <a href="element.html">
            
                    
                    element
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.15" data-path="iview.html">
            
                <a href="iview.html">
            
                    
                    iview
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.16" data-path="test.html">
            
                <a href="test.html">
            
                    
                    test
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >web前端</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#js"><b>1. </b>js</a></li><ul><li><span class="title-icon "></span><a href="#js&#x4E25;&#x683C;&#x6A21;&#x5F0F;"><b>1.1. </b>js&#x4E25;&#x683C;&#x6A21;&#x5F0F;</a></li><li><span class="title-icon "></span><a href="#&#x57FA;&#x672C;&#x8BED;&#x6CD5;"><b>1.2. </b>&#x57FA;&#x672C;&#x8BED;&#x6CD5;</a></li><ul><li><span class="title-icon "></span><a href="#&#x533A;&#x5757;"><b>1.2.1. </b>&#x533A;&#x5757;</a></li><li><span class="title-icon "></span><a href="#&#x8868;&#x8FBE;&#x5F0F;&#x3001;&#x8BED;&#x53E5;"><b>1.2.2. </b>&#x8868;&#x8FBE;&#x5F0F;&#x3001;&#x8BED;&#x53E5;</a></li><li><span class="title-icon "></span><a href="#&#x53D8;&#x91CF;&#x63D0;&#x5347;"><b>1.2.3. </b>&#x53D8;&#x91CF;&#x63D0;&#x5347;</a></li></ul><li><span class="title-icon "></span><a href="#&#x6570;&#x636E;&#x7C7B;&#x578B;"><b>1.3. </b>&#x6570;&#x636E;&#x7C7B;&#x578B;</a></li><li><span class="title-icon "></span><a href="#&#x7C7B;&#x578B;&#x8F6C;&#x6362;"><b>1.4. </b>&#x7C7B;&#x578B;&#x8F6C;&#x6362;</a></li><li><span class="title-icon "></span><a href="#typeof"><b>1.5. </b>typeof</a></li><li><span class="title-icon "></span><a href="#&#x5BF9;&#x8C61;"><b>1.6. </b>&#x5BF9;&#x8C61;</a></li><li><span class="title-icon "></span><a href="#&#x51FD;&#x6570;"><b>1.7. </b>&#x51FD;&#x6570;</a></li><ul><li><span class="title-icon "></span><a href="#&#x7ACB;&#x5373;&#x6267;&#x884C;&#x51FD;&#x6570;-iife"><b>1.7.1. </b>&#x7ACB;&#x5373;&#x6267;&#x884C;&#x51FD;&#x6570; IIFE</a></li><li><span class="title-icon "></span><a href="#&#x51FD;&#x6570;&#x95ED;&#x5305;"><b>1.7.2. </b>&#x51FD;&#x6570;&#x95ED;&#x5305;</a></li></ul><li><span class="title-icon "></span><a href="#eval-&#x547D;&#x4EE4;"><b>1.8. </b>eval &#x547D;&#x4EE4;</a></li><li><span class="title-icon "></span><a href="#js&#x5185;&#x7F6E;&#x5BF9;&#x8C61;"><b>1.9. </b>js&#x5185;&#x7F6E;&#x5BF9;&#x8C61;</a></li><ul><li><span class="title-icon "></span><a href="#object"><b>1.9.1. </b>Object</a></li><li><span class="title-icon "></span><a href="#array"><b>1.9.2. </b>Array</a></li><li><span class="title-icon "></span><a href="#&#x5B57;&#x7B26;&#x4E32;-string"><b>1.9.3. </b>&#x5B57;&#x7B26;&#x4E32; String</a></li><li><span class="title-icon "></span><a href="#regexp---&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;"><b>1.9.4. </b>RegExp   &#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;</a></li><li><span class="title-icon "></span><a href="#json-&#x5BF9;&#x8C61;"><b>1.9.5. </b>JSON &#x5BF9;&#x8C61;</a></li><li><span class="title-icon "></span><a href="#date-&#x5BF9;&#x8C61;"><b>1.9.6. </b>Date &#x5BF9;&#x8C61;</a></li><li><span class="title-icon "></span><a href="#math-&#x5BF9;&#x8C61;"><b>1.9.7. </b>Math &#x5BF9;&#x8C61;</a></li></ul><li><span class="title-icon "></span><a href="#&#x4E8B;&#x4EF6;"><b>1.10. </b>&#x4E8B;&#x4EF6;</a></li><ul><li><span class="title-icon "></span><a href="#&#x9F20;&#x6807;&#x4E8B;&#x4EF6;"><b>1.10.1. </b>&#x9F20;&#x6807;&#x4E8B;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#&#x952E;&#x76D8;&#x4E8B;&#x4EF6;"><b>1.10.2. </b>&#x952E;&#x76D8;&#x4E8B;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#&#x8868;&#x5355;&#x4E8B;&#x4EF6;"><b>1.10.3. </b>&#x8868;&#x5355;&#x4E8B;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#&#x89E6;&#x6478;&#x4E8B;&#x4EF6;"><b>1.10.4. </b>&#x89E6;&#x6478;&#x4E8B;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#&#x5176;&#x4ED6;&#x4E8B;&#x4EF6;"><b>1.10.5. </b>&#x5176;&#x4ED6;&#x4E8B;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#&#x62D6;&#x62C9;&#x4E8B;&#x4EF6;"><b>1.10.6. </b>&#x62D6;&#x62C9;&#x4E8B;&#x4EF6;</a></li></ul><li><span class="title-icon "></span><a href="#&#x8FD0;&#x7B97;&#x7B26;"><b>1.11. </b>&#x8FD0;&#x7B97;&#x7B26;</a></li><li><span class="title-icon "></span><a href="#&#x6BD4;&#x8F83;"><b>1.12. </b>&#x6BD4;&#x8F83;</a></li><li><span class="title-icon "></span><a href="#if-else-&#x6761;&#x4EF6;&#x8BED;&#x53E5;"><b>1.13. </b>if else &#x6761;&#x4EF6;&#x8BED;&#x53E5;</a></li><li><span class="title-icon "></span><a href="#switch-&#x8BED;&#x53E5;"><b>1.14. </b>switch &#x8BED;&#x53E5;</a></li><li><span class="title-icon "></span><a href="#for-&#x5FAA;&#x73AF;"><b>1.15. </b>for &#x5FAA;&#x73AF;</a></li><li><span class="title-icon "></span><a href="#do--while-&#x5FAA;&#x73AF;"><b>1.16. </b>do ... while &#x5FAA;&#x73AF;</a></li><li><span class="title-icon "></span><a href="#break-&#x548C;-continue-&#x8BED;&#x53E5;"><b>1.17. </b>break &#x548C; continue &#x8BED;&#x53E5;</a></li><li><span class="title-icon "></span><a href="#&#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;"><b>1.18. </b>&#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;</a></li><li><span class="title-icon "></span><a href="#label&#x6807;&#x7B7E;"><b>1.19. </b>label&#x6807;&#x7B7E;</a></li><li><span class="title-icon "></span><a href="#&#x9519;&#x8BEF;"><b>1.20. </b>&#x9519;&#x8BEF;</a></li><li><span class="title-icon "></span><a href="#&#x8868;&#x5355;&#x9A8C;&#x8BC1;"><b>1.21. </b>&#x8868;&#x5355;&#x9A8C;&#x8BC1;</a></li><li><span class="title-icon "></span><a href="#&#x5176;&#x4ED6;"><b>1.22. </b>&#x5176;&#x4ED6;</a></li></ul></ul></div><a href="#js" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="js"><a name="js" class="anchor-navigation-ex-anchor" href="#js"><i class="fa fa-link" aria-hidden="true"></i></a>1. js</h1>
<p><a href="https://wangdoc.com/javascript/basic/grammar.html" target="_blank">JavaScript </a></p>
<pre><code class="lang-xml">&#x662F;&#x4E00;&#x79CD;&#x52A8;&#x6001;&#x7C7B;&#x578B;&#x8BED;&#x8A00;&#xFF0C;&#x53D8;&#x91CF;&#x6CA1;&#x6709;&#x7C7B;&#x578B;&#x9650;&#x5236;&#x3002;
&#x53D8;&#x91CF;&#x7684;&#x7C7B;&#x578B;&#x6CA1;&#x6CD5;&#x5728;&#x7F16;&#x8BD1;&#x9636;&#x6BB5;&#x5C31;&#x77E5;&#x9053;&#xFF0C;&#x5FC5;&#x987B;&#x7B49;&#x5230;&#x8FD0;&#x884C;&#x65F6;&#x624D;&#x80FD;&#x77E5;&#x9053;&#x3002;

&#x5404;&#x79CD;&#x8FD0;&#x7B97;&#x7B26;&#x5BF9;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x662F;&#x6709;&#x8981;&#x6C42;&#x7684;&#x3002;&#x5982;&#x679C;&#x8FD0;&#x7B97;&#x7B26;&#x53D1;&#x73B0;&#xFF0C;&#x8FD0;&#x7B97;&#x5B50;&#x7684;&#x7C7B;&#x578B;&#x4E0E;&#x9884;&#x671F;&#x4E0D;&#x7B26;&#xFF0C;&#x5C31;&#x4F1A;&#x81EA;&#x52A8;&#x8F6C;&#x6362;&#x7C7B;&#x578B;&#x3002;
</code></pre>
<h2 id="js&#x4E25;&#x683C;&#x6A21;&#x5F0F;"><a name="js&#x4E25;&#x683C;&#x6A21;&#x5F0F;" class="anchor-navigation-ex-anchor" href="#js&#x4E25;&#x683C;&#x6A21;&#x5F0F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. js&#x4E25;&#x683C;&#x6A21;&#x5F0F;</h2>
<p>ECMAscript 5&#x6DFB;&#x52A0;&#x4E86;&#x201C;&#x4E25;&#x683C;&#x6A21;&#x5F0F;&#x201D;&#x3002; &#x8FD9;&#x79CD;&#x6A21;&#x5F0F;&#x4F7F;&#x5F97;JavaScript&#x5728;&#x66F4;&#x5408;&#x7406;&#xFF0C;&#x66F4;&#x5B89;&#x5168;&#x3001;&#x66F4;&#x4E25;&#x7981;&#x7684;&#x6761;&#x4EF6;&#x4E0B;&#x6267;&#x884C;&#x3002;</p>
<pre><code class="lang-xml">//f1.js
&apos;use strice&apos;; //&#x6307;&#x660E;&#x4F7F;&#x7528; &#x4E25;&#x683C;&#x6A21;&#x5F0F;&#x8FD0;&#x884C;
</code></pre>
<p><br></p>
<h2 id="&#x57FA;&#x672C;&#x8BED;&#x6CD5;"><a name="&#x57FA;&#x672C;&#x8BED;&#x6CD5;" class="anchor-navigation-ex-anchor" href="#&#x57FA;&#x672C;&#x8BED;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x57FA;&#x672C;&#x8BED;&#x6CD5;</h2>
<h3 id="&#x533A;&#x5757;"><a name="&#x533A;&#x5757;" class="anchor-navigation-ex-anchor" href="#&#x533A;&#x5757;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.1. &#x533A;&#x5757;</h3>
<p>&#x4F7F;&#x7528;&#x5927;&#x62EC;&#x53F7;&#xFF0C;&#x5C06;&#x591A;&#x4E2A;&#x76F8;&#x5173;&#x7684;&#x8BED;&#x53E5;&#x7EC4;&#x5408;&#x5728;&#x4E00;&#x8D77;&#xFF0C;&#x79F0;&#x4E3A;&#x201C;&#x533A;&#x5757;&#x201D; &#x3002;</p>
<p>&#x5BF9;&#x4E8E;var&#x547D;&#x4EE4;&#x6765;&#x8BF4;&#xFF0C;JavaScript &#x7684;&#x533A;&#x5757;&#x4E0D;&#x6784;&#x6210;&#x5355;&#x72EC;&#x7684;&#x4F5C;&#x7528;&#x57DF; &#x3002;</p>
<pre><code class="lang-javascript">{
  <span class="hljs-keyword">var</span> a = <span class="hljs-number">1</span>;
}
</code></pre>
<h3 id="&#x8868;&#x8FBE;&#x5F0F;&#x3001;&#x8BED;&#x53E5;"><a name="&#x8868;&#x8FBE;&#x5F0F;&#x3001;&#x8BED;&#x53E5;" class="anchor-navigation-ex-anchor" href="#&#x8868;&#x8FBE;&#x5F0F;&#x3001;&#x8BED;&#x53E5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.2. &#x8868;&#x8FBE;&#x5F0F;&#x3001;&#x8BED;&#x53E5;</h3>
<p>JavaScript&#x4E2D;&#x7684;&#x8868;&#x8FBE;&#x5F0F;&#x548C;&#x8BED;&#x53E5;&#x662F;&#x6709;&#x533A;&#x522B;&#x7684;&#x3002; &#x4E00;&#x4E2A;&#x8868;&#x8FBE;&#x5F0F;&#x4F1A;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x503C; &#x3002;&#x8BED;&#x53E5;&#x53EF;&#x4EE5;&#x7406;&#x89E3;&#x6210;&#x4E00;&#x4E2A;&#x884C;&#x4E3A;&#xFF0C;&#x5FAA;&#x73AF;&#x8BED;&#x53E5;&#x548C;if&#x8BED;&#x53E5;&#x5C31;&#x662F;&#x5178;&#x578B;&#x7684;&#x8BED;&#x53E5;&#x3002;</p>
<p><br></p>
<h3 id="&#x53D8;&#x91CF;&#x63D0;&#x5347;"><a name="&#x53D8;&#x91CF;&#x63D0;&#x5347;" class="anchor-navigation-ex-anchor" href="#&#x53D8;&#x91CF;&#x63D0;&#x5347;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.3. &#x53D8;&#x91CF;&#x63D0;&#x5347;</h3>
<p>js &#x4E2D;&#xFF0C;&#x51FD;&#x6570;&#x53CA;&#x53D8;&#x91CF;&#x7684;&#x58F0;&#x660E;&#x90FD;&#x4F1A;&#x88AB;&#x7CFB;&#x7EDF;&#x63D0;&#x5347;&#x5230;&#x51FD;&#x6570;&#x7684;&#x6700;&#x9876;&#x90E8;&#x3002; &#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#x53D8;&#x91CF;&#x53EF;&#x4EE5;&#x5148;&#x4F7F;&#x7528;&#x518D;&#x58F0;&#x660E;&#x3002;</p>
<pre><code class="lang-xml">x = 5; // &#x5148;&#x4F7F;&#x7528;
var x; // &#x518D;&#x58F0;&#x660E;
</code></pre>
<p><br></p>
<h2 id="&#x6570;&#x636E;&#x7C7B;&#x578B;"><a name="&#x6570;&#x636E;&#x7C7B;&#x578B;" class="anchor-navigation-ex-anchor" href="#&#x6570;&#x636E;&#x7C7B;&#x578B;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. &#x6570;&#x636E;&#x7C7B;&#x578B;</h2>
<pre><code class="lang-xml">&#x6570;&#x503C;
&#x6574;&#x6570;&#x548C;&#x5C0F;&#x6570;&#xFF08;&#x6BD4;&#x5982;1&#x548C;3.14&#xFF09;

&#x5B57;&#x7B26;&#x4E32;
&#x6BD4;&#x5982;Hello World

&#x5E03;&#x5C14;&#x503C;
true&#x3001;false

undefined
&#x8868;&#x793A;&#x201C;&#x672A;&#x5B9A;&#x4E49;&#x201D;&#x6216;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x5373;&#x7531;&#x4E8E;&#x76EE;&#x524D;&#x6CA1;&#x6709;&#x5B9A;&#x4E49;&#xFF0C;&#x6240;&#x4EE5;&#x6B64;&#x5904;&#x6682;&#x65F6;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x503C;

null
&#x8868;&#x793A;&#x7A7A;&#x503C;&#xFF0C;&#x5373;&#x6B64;&#x5904;&#x7684;&#x503C;&#x4E3A;&#x7A7A;&#x3002;

&#x5BF9;&#x8C61;
&#x53EF;&#x4EE5;&#x5206;&#x6210;&#x4E09;&#x4E2A;&#x5B50;&#x7C7B;&#x578B;&#x3002;&#x72ED;&#x4E49;&#x7684;&#x5BF9;&#x8C61;&#x3001;&#x6570;&#x7EC4;&#x3001;&#x51FD;&#x6570; &#x3002;
</code></pre>
<p><br></p>
<h2 id="&#x7C7B;&#x578B;&#x8F6C;&#x6362;"><a name="&#x7C7B;&#x578B;&#x8F6C;&#x6362;" class="anchor-navigation-ex-anchor" href="#&#x7C7B;&#x578B;&#x8F6C;&#x6362;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. &#x7C7B;&#x578B;&#x8F6C;&#x6362;</h2>
<p>&#x81EA;&#x52A8;&#x8F6C;&#x6362;&#x5177;&#x6709;&#x4E0D;&#x786E;&#x5B9A;&#x6027;&#xFF0C;&#x800C;&#x4E14;&#x4E0D;&#x6613;&#x9664;&#x9519;&#xFF0C;&#x5EFA;&#x8BAE;&#x5728;&#x9884;&#x671F;&#x4E3A;&#x5E03;&#x5C14;&#x503C;&#x3001;&#x6570;&#x503C;&#x3001;&#x5B57;&#x7B26;&#x4E32;&#x7684;&#x5730;&#x65B9;&#xFF0C;&#x4F7F;&#x7528;Boolean&#x3001;Number&#x548C;String&#x51FD;&#x6570;&#x8FDB;&#x884C;&#x663E;&#x5F0F;&#x8F6C;&#x6362;&#x3002;</p>
<pre><code class="lang-xml">//Number&#x51FD;&#x6570;&#x5F3A;&#x5236;&#x8F6C;&#x6362;
Number(324) // 324
Number(&apos;324&apos;) // 324
Number(&apos;324abc&apos;) // NaN
Number(&apos;&apos;) // 0
Number(true) // 1
Number(false) // 0
Number(undefined) // NaN
Number(null) // 0
Number({a: 1}) // NaN
Number([1, 2, 3]) // NaN
Number([5]) // 5
Number({}) // NaN
//String &#x51FD;&#x6570;&#x5F3A;&#x5236;&#x8F6C;&#x6362;
String(123) // &quot;123&quot;
String(&apos;abc&apos;) // &quot;abc&quot;
String(true) // &quot;true&quot;
String(undefined) // &quot;undefined&quot;
String(null) // &quot;null&quot;
String({a: 1}) // &quot;[object Object]&quot;
String([1, 2, 3]) // &quot;1,2,3&quot;
//Boolean &#x51FD;&#x6570;&#x5F3A;&#x5236;&#x8F6C;&#x6362;
Boolean(undefined) // false
Boolean(null) // false
Boolean(0) // false
Boolean(NaN) // false
Boolean(&apos;&apos;) // false
Boolean({}) // true
Boolean([]) // true
Boolean(new Boolean(false)) // true
</code></pre>
<p><br></p>
<h2 id="typeof"><a name="typeof" class="anchor-navigation-ex-anchor" href="#typeof"><i class="fa fa-link" aria-hidden="true"></i></a>1.5. typeof</h2>
<p>&#x7528;&#x6765;&#x786E;&#x5B9A;&#x4E00;&#x4E2A;&#x503C;&#x7684;&#x7C7B;&#x578B;</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">typeof</span> <span class="hljs-number">123</span> <span class="hljs-comment">// &quot;number&quot;</span>
<span class="hljs-keyword">typeof</span> <span class="hljs-string">&apos;123&apos;</span> <span class="hljs-comment">// &quot;string&quot;</span>
<span class="hljs-keyword">typeof</span> <span class="hljs-literal">false</span> <span class="hljs-comment">// &quot;boolean&quot;</span>

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">f</span>(<span class="hljs-params"></span>) </span>{}
<span class="hljs-keyword">typeof</span> f <span class="hljs-comment">// &quot;function&quot;</span>

<span class="hljs-keyword">typeof</span> <span class="hljs-literal">undefined</span> <span class="hljs-comment">// &quot;undefined&quot;</span>

v  <span class="hljs-comment">// &#x6CA1;&#x6709;&#x88AB;&#x58F0;&#x660E;&#x8FC7;</span>
<span class="hljs-keyword">typeof</span> v <span class="hljs-comment">// &quot;undefined&quot;</span>

<span class="hljs-keyword">typeof</span> <span class="hljs-built_in">window</span> <span class="hljs-comment">// &quot;object&quot;</span>
<span class="hljs-keyword">typeof</span> {} <span class="hljs-comment">// &quot;object&quot;</span>
<span class="hljs-keyword">typeof</span> [] <span class="hljs-comment">// &quot;object&quot;</span>
</code></pre>
<p><br></p>
<h2 id="&#x5BF9;&#x8C61;"><a name="&#x5BF9;&#x8C61;" class="anchor-navigation-ex-anchor" href="#&#x5BF9;&#x8C61;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6. &#x5BF9;&#x8C61;</h2>
<p>&#x5BF9;&#x8C61;&#x5C31;&#x662F;&#x4E00;&#x7EC4;&#x201C;&#x952E;&#x503C;&#x5BF9;&#x201D;&#x7684;&#x96C6;&#x5408;&#xFF0C;&#x662F;&#x4E00;&#x79CD;&#x65E0;&#x5E8F;&#x7684;&#x590D;&#x5408;&#x6570;&#x636E;&#x96C6;&#x5408;&#x3002;</p>
<p>&#x5BF9;&#x8C61; &#x548C;&#x4EE3;&#x7801;&#x5757; &#x90FD;&#x91C7;&#x7528;&#x5927;&#x62EC;&#x53F7;&#x8868;&#x793A;&#x3002;&#x4E3A;&#x4E86;&#x907F;&#x514D;&#x8FD9;&#x79CD;&#x6B67;&#x4E49;&#xFF0C;V8 &#x5F15;&#x64CE;&#x89C4;&#x5B9A;&#xFF0C;&#x5982;&#x679C;&#x884C;&#x9996;&#x662F;&#x5927;&#x62EC;&#x53F7;&#xFF0C;&#x4E00;&#x5F8B;&#x89E3;&#x91CA;&#x4E3A;&#x5BF9;&#x8C61;&#x3002;&#x4E0D;&#x8FC7;&#xFF0C;&#x4E3A;&#x4E86;&#x907F;&#x514D;&#x6B67;&#x4E49;&#xFF0C;&#x6700;&#x597D;&#x5728;&#x5927;&#x62EC;&#x53F7;&#x524D;&#x52A0;&#x4E0A;&#x5706;&#x62EC;&#x53F7;&#x3002; ({ foo: 123})</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> obj = {
  foo: <span class="hljs-string">&apos;Hello&apos;</span>,
  bar: <span class="hljs-string">&apos;World&apos;</span>
};

<span class="hljs-comment">//with &#x8BED;&#x53E5;</span>
&#x64CD;&#x4F5C;&#x540C;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x7684;&#x591A;&#x4E2A;&#x5C5E;&#x6027;&#x65F6;&#xFF0C;&#x7B80;&#x5316;&#x4EE3;&#x7801;
<span class="hljs-keyword">with</span> (<span class="hljs-built_in">document</span>.links[<span class="hljs-number">0</span>]){
  <span class="hljs-built_in">console</span>.log(href);
  <span class="hljs-built_in">console</span>.log(title);
  <span class="hljs-built_in">console</span>.log(style);
}
</code></pre>
<p><br></p>
<h2 id="&#x51FD;&#x6570;"><a name="&#x51FD;&#x6570;" class="anchor-navigation-ex-anchor" href="#&#x51FD;&#x6570;"><i class="fa fa-link" aria-hidden="true"></i></a>1.7. &#x51FD;&#x6570;</h2>
<p>&#x5982;&#x679C;&#x540C;&#x4E00;&#x4E2A;&#x51FD;&#x6570;&#x88AB;&#x591A;&#x6B21;&#x58F0;&#x660E;&#xFF0C;&#x540E;&#x9762;&#x7684;&#x58F0;&#x660E;&#x5C31;&#x4F1A;&#x8986;&#x76D6;&#x524D;&#x9762;&#x7684;&#x58F0;&#x660E;&#x3002;
&#x6CE8;&#x610F;&#xFF1A; &#x5B9A;&#x4E49;&#x51FD;&#x6570;&#x65F6;&#xFF0C;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x6307;&#x5B9A;&#x53C2;&#x6570;&#x7684;&#x7C7B;&#x578B;&#x7684;</p>
<pre><code class="lang-javascript">js&#x6709;&#x4E09;&#x79CD;&#x58F0;&#x660E;&#x51FD;&#x6570;&#x7684;&#x65B9;&#x6CD5;&#x3002;
<span class="hljs-number">1</span>&#x3001; <span class="hljs-function"><span class="hljs-keyword">function</span> &#x547D;&#x4EE4;
<span class="hljs-title">function</span> <span class="hljs-title">print</span>(<span class="hljs-params">s</span>) </span>{
}

<span class="hljs-number">2</span>&#x3001;&#x51FD;&#x6570;&#x8868;&#x8FBE;&#x5F0F;&#xFF08;&#x91C7;&#x7528;&#x53D8;&#x91CF;&#x8D4B;&#x503C;&#x7684;&#x5199;&#x6CD5;&#xFF09;
<span class="hljs-keyword">var</span> print = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">s</span>) </span>{
};
&#x6216;
<span class="hljs-keyword">var</span> print = <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">x</span>(<span class="hljs-params"></span>)</span>{
  <span class="hljs-comment">// &#x8FD9;&#x79CD;&#x5199;&#x6CD5;&#x7684;&#x7528;&#x5904;&#x6709;&#x4E24;&#x4E2A;&#xFF0C;&#x4E00;&#x662F;&#x53EF;&#x4EE5;&#x5728;&#x51FD;&#x6570;&#x4F53;&#x5185;&#x90E8;&#x8C03;&#x7528;&#x81EA;&#x8EAB;&#xFF0C;</span>
  <span class="hljs-comment">//&#x4E8C;&#x662F;&#x65B9;&#x4FBF;&#x9664;&#x9519;&#xFF08;&#x9664;&#x9519;&#x5DE5;&#x5177;&#x663E;&#x793A;&#x51FD;&#x6570;&#x8C03;&#x7528;&#x6808;&#x65F6;&#xFF0C;&#x5C06;&#x663E;&#x793A;&#x51FD;&#x6570;&#x540D;&#xFF0C;</span>
  <span class="hljs-comment">//&#x800C;&#x4E0D;&#x518D;&#x663E;&#x793A;&#x8FD9;&#x91CC;&#x662F;&#x4E00;&#x4E2A;&#x533F;&#x540D;&#x51FD;&#x6570;</span>
};

<span class="hljs-number">3</span>&#x3001; &#x5229;&#x7528;&#x5173;&#x952E;&#x5B57; <span class="hljs-built_in">Function</span> &#x6784;&#x9020;&#x51FD;&#x6570;
&#x4E0D;&#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;
<span class="hljs-keyword">var</span> add = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Function</span>(
  <span class="hljs-string">&apos;x&apos;</span>,
  <span class="hljs-string">&apos;y&apos;</span>,
  <span class="hljs-string">&apos;return x + y&apos;</span>
);
</code></pre>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">f1</span>(<span class="hljs-params"></span>) </span>{}
<span class="hljs-comment">//  name&#x5C5E;&#x6027;&#x8FD4;&#x56DE;&#x51FD;&#x6570;&#x540D;&#x5B57;</span>
f1.name

<span class="hljs-comment">// length&#x5C5E;&#x6027; &#x8FD4;&#x56DE; &#x51FD;&#x6570;&#x5B9A;&#x4E49;&#x65F6;&#x7684;&#x53C2;&#x6570;&#x4E2A;&#x6570;&#x3002;</span>
f.length

<span class="hljs-comment">// &#x51FD;&#x6570;&#x53C2;&#x6570;&#x4E0D;&#x662F;&#x5FC5;&#x9700;&#x7684;&#xFF0C; js &#x5141;&#x8BB8;&#x7701;&#x7565;&#x53C2;&#x6570;&#x3002;</span>
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">f</span>(<span class="hljs-params">a, b</span>) </span>{
  <span class="hljs-keyword">return</span> a;
}
f(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>) <span class="hljs-comment">// 1</span>
f(<span class="hljs-number">1</span>) <span class="hljs-comment">// 1</span>
f() <span class="hljs-comment">// undefined</span>
f(<span class="hljs-literal">undefined</span>, <span class="hljs-number">1</span>) <span class="hljs-comment">// undefined</span>
f( , <span class="hljs-number">1</span>) <span class="hljs-comment">// &#x62A5;&#x9519;</span>

<span class="hljs-comment">// &#x5728;&#x51FD;&#x6570;&#x5185;&#x90E8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; arguments&#x5BF9;&#x8C61;&#x6765;&#x83B7;&#x5F97;&#x6240;&#x6709;&#x7684;&#x53C2;&#x6570;</span>
<span class="hljs-keyword">var</span> f = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">a, b</span>) </span>{
  <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">arguments</span>[<span class="hljs-number">0</span>]);
  <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">arguments</span>[<span class="hljs-number">1</span>]);
  <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">arguments</span>[<span class="hljs-number">2</span>]);
  <span class="hljs-keyword">return</span> a + b;
}
</code></pre>
<h3 id="&#x7ACB;&#x5373;&#x6267;&#x884C;&#x51FD;&#x6570;-iife"><a name="&#x7ACB;&#x5373;&#x6267;&#x884C;&#x51FD;&#x6570;-iife" class="anchor-navigation-ex-anchor" href="#&#x7ACB;&#x5373;&#x6267;&#x884C;&#x51FD;&#x6570;-iife"><i class="fa fa-link" aria-hidden="true"></i></a>1.7.1. &#x7ACB;&#x5373;&#x6267;&#x884C;&#x51FD;&#x6570; IIFE</h3>
<p>Immediately-Invoked Function Expression<br>&#x5728; js &#x4E2D;&#xFF0C; ()&#x662F;&#x4E00;&#x79CD;&#x8FD0;&#x7B97;&#x7B26;&#xFF0C;&#x8DDF;&#x5728;&#x51FD;&#x6570;&#x540D;&#x4E4B;&#x540E;&#xFF0C;&#x8868;&#x793A;&#x8C03;&#x7528;&#x8BE5;&#x51FD;&#x6570;&#x3002;</p>
<pre><code class="lang-javascript">&#x6700;&#x5916;&#x5C42;&#x52A0;&#x4E00;&#x4E2A;&#x5C0F;&#x62EC;&#x53F7;&#x662F;&#x4E3A;&#x4E86;&#x4FDD;&#x62A4;&#x53D8;&#x91CF;&#x7684;&#x4F5C;&#x7528;&#x57DF;
(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">a, b</span>)</span>{
    <span class="hljs-built_in">console</span>.log(a + b);
})(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>)
<span class="hljs-comment">// &#x6700;&#x540E;&#x7684;&#x5C0F;&#x62EC;&#x53F7;&#x662F;&#x8868;&#x793A;&#x7ACB;&#x5373;&#x6267;&#x884C;&#x8FD9;&#x4E2A;&#x51FD;&#x6570;&#xFF0C;&#x5E76;&#x4F20;&#x5165;&#x53C2;&#x6570;</span>
</code></pre>
<h3 id="&#x51FD;&#x6570;&#x95ED;&#x5305;"><a name="&#x51FD;&#x6570;&#x95ED;&#x5305;" class="anchor-navigation-ex-anchor" href="#&#x51FD;&#x6570;&#x95ED;&#x5305;"><i class="fa fa-link" aria-hidden="true"></i></a>1.7.2. &#x51FD;&#x6570;&#x95ED;&#x5305;</h3>
<p>&#x9996;&#x5148;&#xFF1A;&#x51FD;&#x6570;&#x5185;&#x90E8;&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#xFF0C;&#x51FD;&#x6570;&#x5916;&#x90E8;&#x4E0D;&#x80FD;&#x8BBF;&#x95EE;&#x51FD;&#x6570;&#x5185;&#x7684;&#x53D8;&#x91CF; &#x3002;</p>
<pre><code class="lang-javascript">&#x4E3A;&#x4E86;&#x5B9E;&#x73B0; &#x5916;&#x90E8;&#x4EE3;&#x7801;&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;&#x51FD;&#x6570;&#x5185;&#x90E8;&#x7684;&#x5C40;&#x90E8;&#x53D8;&#x91CF;&#xFF0C;&#x6211;&#x4EEC;&#x8BBE;&#x8BA1;&#x4E86;&#x95ED;&#x5305;&#x673A;&#x5236;&#x3002;

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">f1</span>(<span class="hljs-params"></span>)</span>{
  <span class="hljs-keyword">var</span> n=<span class="hljs-number">100</span> ;
  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">f2</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-comment">// &#x62FF;&#x7740;f1&#x7684;&#x5C40;&#x90E8;&#x53D8;&#x91CF;n&#x505A;&#x4E00;&#x4E9B;&#x4E8B;&#x60C5;...</span>
  }
  <span class="hljs-comment">// &#x5C06;&#x5185;&#x90E8;&#x51FD;&#x6570;&#x8FD4;&#x56DE;</span>
  <span class="hljs-keyword">return</span> f2 ;
}

<span class="hljs-comment">// &#x4F7F;&#x7528;&#x95ED;&#x5305;</span>
<span class="hljs-keyword">var</span> f3 = f1() ;  <span class="hljs-comment">// &#x6CE8;&#x610F;&#xFF0C;&#x4E0D;&#x662F; f3= f1</span>
f3() ; <span class="hljs-comment">// &#x76F8;&#x5F53;&#x4E8E;&#x6267;&#x884C;&#x4E86; f2()</span>

&#x9898;&#x5916;&#x8BDD;&#xFF1A; &#x4E2A;&#x4EBA;&#x611F;&#x89C9;&#x95ED;&#x5305;&#x8FD9;&#x4E2A;&#x4E1C;&#x897F;&#x8BBE;&#x8BA1;&#x7684;&#x6709;&#x70B9;&#x53CD;&#x4EBA;&#x7C7B;&#x3002;
</code></pre>
<h2 id="eval-&#x547D;&#x4EE4;"><a name="eval-&#x547D;&#x4EE4;" class="anchor-navigation-ex-anchor" href="#eval-&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>1.8. eval &#x547D;&#x4EE4;</h2>
<pre><code class="lang-javascript"><span class="hljs-built_in">eval</span>&#x547D;&#x4EE4;&#x63A5;&#x53D7;&#x4E00;&#x4E2A;&#x5B57;&#x7B26;&#x4E32;&#x4F5C;&#x4E3A;&#x53C2;&#x6570;&#xFF0C;&#x5E76;&#x5C06;&#x8FD9;&#x4E2A;&#x5B57;&#x7B26;&#x4E32;&#x5F53;&#x4F5C;&#x8BED;&#x53E5;&#x6267;&#x884C;&#x3002;
<span class="hljs-built_in">eval</span>&#x6CA1;&#x6709;&#x81EA;&#x5DF1;&#x7684;&#x4F5C;&#x7528;&#x57DF;&#xFF0C;&#x90FD;&#x5728;&#x5F53;&#x524D;&#x4F5C;&#x7528;&#x57DF;&#x5185;&#x6267;&#x884C; &#x3002;

<span class="hljs-comment">//eval &#x7684;&#x522B;</span>
<span class="hljs-keyword">var</span> m = <span class="hljs-built_in">eval</span>;
m(<span class="hljs-string">&apos;var x = 1&apos;</span>);
&#x4E3A;&#x4E86;&#x4FDD;&#x8BC1;<span class="hljs-built_in">eval</span>&#x7684;&#x522B;&#x540D;&#x4E0D;&#x5F71;&#x54CD;&#x4EE3;&#x7801;&#x4F18;&#x5316; ,
js &#x7684;&#x6807;&#x51C6;&#x89C4;&#x5B9A;&#xFF0C;&#x51E1;&#x662F;&#x4F7F;&#x7528;&#x522B;&#x540D;&#x6267;&#x884C;<span class="hljs-built_in">eval</span>&#xFF0C;<span class="hljs-built_in">eval</span>&#x5185;&#x90E8;&#x4E00;&#x5F8B;&#x662F;&#x5168;&#x5C40;&#x4F5C;&#x7528;&#x57DF;&#x3002;
</code></pre>
<h2 id="js&#x5185;&#x7F6E;&#x5BF9;&#x8C61;"><a name="js&#x5185;&#x7F6E;&#x5BF9;&#x8C61;" class="anchor-navigation-ex-anchor" href="#js&#x5185;&#x7F6E;&#x5BF9;&#x8C61;"><i class="fa fa-link" aria-hidden="true"></i></a>1.9. js&#x5185;&#x7F6E;&#x5BF9;&#x8C61;</h2>
<h3 id="object"><a name="object" class="anchor-navigation-ex-anchor" href="#object"><i class="fa fa-link" aria-hidden="true"></i></a>1.9.1. Object</h3>
<p>JavaScript &#x7684;&#x6240;&#x6709;&#x5176;&#x4ED6;&#x5BF9;&#x8C61;&#x90FD;&#x7EE7;&#x627F;&#x81EA;Object&#x5BF9;&#x8C61; &#x3002;</p>
<pre><code class="lang-JavaScript"><span class="hljs-comment">//&#x8FD4;&#x56DE;&#x7A7A;&#x5BF9;&#x8C61;</span>
<span class="hljs-keyword">var</span> obj = <span class="hljs-built_in">Object</span>();<span class="hljs-comment">// undefined / null</span>
&#x5982;&#x679C;<span class="hljs-built_in">Object</span>&#x65B9;&#x6CD5;&#x7684;&#x53C2;&#x6570;&#x662F;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#xFF0C;&#x5B83;&#x603B;&#x662F;&#x8FD4;&#x56DE;&#x8BE5;&#x5BF9;&#x8C61;&#xFF0C;&#x5373;&#x4E0D;&#x7528;&#x8F6C;&#x6362;&#x3002;

<span class="hljs-comment">// &#x8FD4;&#x56DE;&#x5BF9;&#x8C61;&#x7684;&#x6240;&#x6709;&#x5C5E;&#x6027;&#x540D;</span>
<span class="hljs-built_in">Object</span>.keys(obj) ;
<span class="hljs-built_in">Object</span>.getOwnPropertyNames(obj)
<span class="hljs-comment">// &#x83B7;&#x53D6;&#x67D0;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x63CF;&#x8FF0;&#x5BF9;&#x8C61;</span>
<span class="hljs-built_in">Object</span>.getOwnPropertyDescriptor(obj, <span class="hljs-string">&apos;p&apos;</span>)

<span class="hljs-comment">//&#x5C5E;&#x6027;&#x63CF;&#x8FF0;&#x5BF9;&#x8C61;  attributes object</span>
js &#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x5185;&#x90E8;&#x6570;&#x636E;&#x7ED3;&#x6784;&#xFF0C;&#x7528;&#x6765;&#x63CF;&#x8FF0;&#x5BF9;&#x8C61;&#x7684;&#x5C5E;&#x6027; &#x3002;&#x6BCF;&#x4E2A;&#x5C5E;&#x6027;&#x90FD;&#x6709;&#x81EA;&#x5DF1;&#x5BF9;&#x5E94;&#x7684;&#x5C5E;&#x6027;&#x63CF;&#x8FF0;&#x5BF9;&#x8C61;&#x3002;
{
  value: <span class="hljs-number">123</span>,  <span class="hljs-comment">// &#x8BE5;&#x5C5E;&#x6027;&#x7684;&#x5C5E;&#x6027;&#x503C;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;undefined&#x3002;</span>
  writable: <span class="hljs-literal">false</span>, <span class="hljs-comment">//  value &#x662F;&#x5426;&#x53EF;&#x6539;&#x53D8; &#xFF0C;&#x9ED8;&#x8BA4; true&#x3002;</span>
  enumerable: <span class="hljs-literal">true</span>, <span class="hljs-comment">//  &#x662F;&#x5426;&#x53EF;&#x904D;&#x5386;&#xFF0C;&#x9ED8;&#x8BA4; true&#x3002;&#x5982;&#x679C; &#x4E3A;false&#xFF0C;&#x4F1A;&#x4F7F;for&#x5FAA;&#x73AF;&#x64CD;&#x4F5C;&#x7B49;&#x8DF3;&#x8FC7;&#x8BE5;&#x5C5E;&#x6027;&#x3002;</span>
  configurable: <span class="hljs-literal">false</span>, <span class="hljs-comment">// &#x63A7;&#x5236;&#x4E86;&#x5C5E;&#x6027;&#x63CF;&#x8FF0;&#x5BF9;&#x8C61;&#x7684;&#x53EF;&#x5199;&#x6027;</span>
  get: <span class="hljs-literal">undefined</span>,  <span class="hljs-comment">// &#x8BE5;&#x5C5E;&#x6027;&#x7684;&#x53D6;&#x503C;&#x51FD;&#x6570;</span>
  set: <span class="hljs-literal">undefined</span>  <span class="hljs-comment">// &#x8BE5;&#x5C5E;&#x6027;&#x7684;&#x5B58;&#x503C;&#x51FD;&#x6570;</span>
}
</code></pre>
<h3 id="array"><a name="array" class="anchor-navigation-ex-anchor" href="#array"><i class="fa fa-link" aria-hidden="true"></i></a>1.9.2. Array</h3>
<pre><code class="lang-JavaScript"><span class="hljs-built_in">Array</span>&#x6784;&#x9020;&#x51FD;&#x6570;&#x6709;&#x4E00;&#x4E2A;&#x5F88;&#x5927;&#x7684;&#x7F3A;&#x9677;: &#x5C31;&#x662F;&#x4E0D;&#x540C;&#x7684;&#x53C2;&#x6570;&#xFF0C;&#x4F1A;&#x5BFC;&#x81F4;&#x5B83;&#x7684;&#x884C;&#x4E3A;&#x4E0D;&#x4E00;&#x81F4;&#x3002;
&#x56E0;&#x6B64;&#xFF0C;&#x4E0D;&#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#x6784;&#x9020;&#x51FD;&#x6570;&#x751F;&#x6210;&#x65B0;&#x6570;&#x7EC4;&#x3002;
<span class="hljs-keyword">var</span> arr = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Array</span>(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>);<span class="hljs-comment">// bad</span>
<span class="hljs-keyword">var</span> arr = [<span class="hljs-number">1</span>, <span class="hljs-number">2</span>];<span class="hljs-comment">// good</span>

<span class="hljs-built_in">Array</span>.isArray(arr); <span class="hljs-comment">// &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x6570;&#x7EC4;&#x7C7B;&#x578B;</span>
<span class="hljs-keyword">var</span> arr = [];
arr.push(<span class="hljs-number">1</span>) <span class="hljs-comment">// &#x6DFB;&#x52A0;&#x5143;&#x7D20;</span>
arr.pop() <span class="hljs-comment">//  &#x5220;&#x9664;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#xFF0C;&#x5E76;&#x8FD4;&#x56DE;&#x8BE5;&#x5143;&#x7D20;&#x3002;</span>
arr.shift() <span class="hljs-comment">//  &#x5220;&#x9664;&#x6570;&#x7EC4;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#xFF0C;&#x5E76;&#x8FD4;&#x56DE;&#x8BE5;&#x5143;&#x7D20;</span>
arr.shift() <span class="hljs-comment">// &#x904D;&#x5386;&#x5E76;&#x6E05;&#x7A7A;&#x4E00;&#x4E2A;&#x6570;&#x7EC4;</span>
arr.unshift(<span class="hljs-string">&apos;x&apos;</span>); <span class="hljs-comment">// &#x5728;&#x6570;&#x7EC4;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x4F4D;&#x7F6E;&#x6DFB;&#x52A0;&#x5143;&#x7D20;</span>
arr.join(<span class="hljs-string">&apos; | &apos;</span>) <span class="hljs-comment">// &#x6307;&#x5B9A;&#x53C2;&#x6570;&#x4F5C;&#x4E3A;&#x5206;&#x9694;&#x7B26;&#xFF0C;&#x5C06;&#x6240;&#x6709;&#x6570;&#x7EC4;&#x6210;&#x5458;&#x8FDE;&#x63A5;&#x4E3A;&#x4E00;&#x4E2A;&#x5B57;&#x7B26;&#x4E32;&#x8FD4;&#x56DE;&#x3002;</span>
[<span class="hljs-string">&apos;hello&apos;</span>].concat([<span class="hljs-string">&apos;world&apos;</span>]) <span class="hljs-comment">// &#x7528;&#x4E8E;&#x591A;&#x4E2A;&#x6570;&#x7EC4;&#x7684;&#x5408;&#x5E76;</span>
arr.reverse() <span class="hljs-comment">// &#x98A0;&#x5012;&#x6392;&#x5217;&#x6570;&#x7EC4;&#x5143;&#x7D20;</span>
arr.slice(start, end); <span class="hljs-comment">// &#x63D0;&#x53D6;&#x76EE;&#x6807;&#x6570;&#x7EC4;&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;&#x65B0;&#x6570;&#x7EC4;</span>
arr.splice(start, count, addElement1, addElement2, ...); <span class="hljs-comment">// &#x5220;&#x9664;&#x539F;&#x6570;&#x7EC4;&#x7684;&#x4E00;&#x90E8;&#x5206;&#x6210;&#x5458;&#xFF0C;&#x5E76;&#x53EF;&#x4EE5;&#x5728;&#x5220;&#x9664;&#x7684;&#x4F4D;&#x7F6E;&#x6DFB;&#x52A0;&#x65B0;&#x7684;&#x6570;&#x7EC4;&#x6210;&#x5458;</span>
[<span class="hljs-number">11</span>, <span class="hljs-number">101</span>].sort() ;<span class="hljs-comment">//  &#x6309;&#x7167;&#x5B57;&#x5178;&#x987A;&#x5E8F;&#x6392;&#x5E8F;</span>
<span class="hljs-comment">// &#x5C06;&#x6570;&#x7EC4;&#x7684;&#x6240;&#x6709;&#x6210;&#x5458;&#x4F9D;&#x6B21;&#x4F20;&#x5165;&#x6307;&#x5B9A;&#x51FD;&#x6570;&#xFF0C;&#x7136;&#x540E;&#x628A;&#x6BCF;&#x4E00;&#x6B21;&#x7684;&#x6267;&#x884C;&#x7ED3;&#x679C;&#x7EC4;&#x6210;&#x4E00;&#x4E2A;&#x65B0;&#x6570;&#x7EC4;&#x8FD4;&#x56DE;&#x3002;</span>
arr.map(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">n</span>) </span>{
  <span class="hljs-keyword">return</span> n + <span class="hljs-number">1</span>;
});
</code></pre>
<h3 id="&#x5B57;&#x7B26;&#x4E32;-string"><a name="&#x5B57;&#x7B26;&#x4E32;-string" class="anchor-navigation-ex-anchor" href="#&#x5B57;&#x7B26;&#x4E32;-string"><i class="fa fa-link" aria-hidden="true"></i></a>1.9.3. &#x5B57;&#x7B26;&#x4E32; String</h3>
<pre><code class="lang-JavaScript"><span class="hljs-comment">// &#x662F;&#x5426;&#x5339;&#x914D;&#x67D0;&#x4E2A;&#x5B50;&#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;&#x6570;&#x7EC4;</span>
<span class="hljs-string">&apos;cat, bat, sat, fat&apos;</span>.match(<span class="hljs-string">&apos;at&apos;</span>) <span class="hljs-comment">// [&quot;at&quot;]</span>
<span class="hljs-comment">// &#x5C0F;&#x4E8E;0: &#x4E00;&#x4E2A;&#x5B57;&#x7B26;&#x4E32; &lt; &#x7B2C;&#x4E8C;&#x4E2A;&#x5B57;&#x7B26;&#x4E32;  ;  &#x5927;&#x4E8E;0&#xFF0C;&#x8868;&#x793A;&#x7B2C;&#x4E00;&#x4E2A;&#x5B57;&#x7B26;&#x4E32; &gt; &#x7B2C;&#x4E8C;&#x4E2A;&#x5B57;&#x7B26;&#x4E32;&#x3002;</span>
<span class="hljs-string">&apos;apple&apos;</span>.localeCompare(<span class="hljs-string">&apos;banana&apos;</span>) <span class="hljs-comment">// -1</span>
</code></pre>
<h3 id="regexp---&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;"><a name="regexp---&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;" class="anchor-navigation-ex-anchor" href="#regexp---&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.9.4. RegExp   &#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;</h3>
<h3 id="json-&#x5BF9;&#x8C61;"><a name="json-&#x5BF9;&#x8C61;" class="anchor-navigation-ex-anchor" href="#json-&#x5BF9;&#x8C61;"><i class="fa fa-link" aria-hidden="true"></i></a>1.9.5. JSON &#x5BF9;&#x8C61;</h3>
<pre><code class="lang-JavaScript"><span class="hljs-comment">// &#x5C06;&#x4E00;&#x4E2A;&#x503C;&#x8F6C;&#x4E3A; JSON &#x5B57;&#x7B26;&#x4E32;</span>
<span class="hljs-built_in">JSON</span>.stringify({ name: <span class="hljs-string">&quot;&#x5F20;&#x4E09;&quot;</span> })

 <span class="hljs-comment">// &#x5C06; json &#x5B57;&#x7B26;&#x4E32;&#x8F6C;&#x6362;&#x6210;&#x5BF9;&#x5E94;&#x7684;&#x503C;</span>
 <span class="hljs-keyword">var</span> o = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-string">&apos;{&quot;name&quot;: &quot;&#x5F20;&#x4E09;&quot;}&apos;</span>);
 o.name <span class="hljs-comment">// &#x5F20;&#x4E09;</span>
</code></pre>
<h3 id="date-&#x5BF9;&#x8C61;"><a name="date-&#x5BF9;&#x8C61;" class="anchor-navigation-ex-anchor" href="#date-&#x5BF9;&#x8C61;"><i class="fa fa-link" aria-hidden="true"></i></a>1.9.6. Date &#x5BF9;&#x8C61;</h3>
<h3 id="math-&#x5BF9;&#x8C61;"><a name="math-&#x5BF9;&#x8C61;" class="anchor-navigation-ex-anchor" href="#math-&#x5BF9;&#x8C61;"><i class="fa fa-link" aria-hidden="true"></i></a>1.9.7. Math &#x5BF9;&#x8C61;</h3>
<p><br></p>
<h2 id="&#x4E8B;&#x4EF6;"><a name="&#x4E8B;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x4E8B;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10. &#x4E8B;&#x4EF6;</h2>
<pre><code class="lang-javascript"><span class="hljs-comment">// &#x6DFB;&#x52A0; &#x76D1;&#x542C;&#x51FD;&#x6570;</span>
button.addEventListener(<span class="hljs-string">&apos;click&apos;</span>, hello, <span class="hljs-literal">false</span>);
<span class="hljs-comment">// &#x79FB;&#x9664;&#x76D1;&#x542C;&#x51FD;&#x6570;</span>
button.removeEventListener(<span class="hljs-string">&apos;click&apos;</span>, listener, <span class="hljs-literal">false</span>);
<span class="hljs-comment">//  &#x5728;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x4E0A;&#x89E6;&#x53D1;&#x6307;&#x5B9A;&#x4E8B;&#x4EF6;&#xFF0C;&#x4ECE;&#x800C;&#x89E6;&#x53D1;&#x76D1;&#x542C;&#x51FD;&#x6570;&#x7684;&#x6267;&#x884C;</span>
xx.dispatchEvent(event);
</code></pre>
<h3 id="&#x9F20;&#x6807;&#x4E8B;&#x4EF6;"><a name="&#x9F20;&#x6807;&#x4E8B;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x9F20;&#x6807;&#x4E8B;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10.1. &#x9F20;&#x6807;&#x4E8B;&#x4EF6;</h3>
<table>
<thead>
<tr>
<th>&#x540D;&#x79F0;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>click</td>
<td>&#x5355;&#x51FB;</td>
</tr>
<tr>
<td>dblclick</td>
<td>&#x53CC;&#x51FB;</td>
</tr>
<tr>
<td>mousedown</td>
<td>&#x6309;&#x4E0B;&#x9F20;&#x6807;&#x952E;&#x65F6;&#x89E6;&#x53D1;&#x3002;</td>
</tr>
<tr>
<td>mouseup</td>
<td>&#x91CA;&#x653E;&#x6309;&#x4E0B;&#x7684;&#x9F20;&#x6807;&#x952E;</td>
</tr>
<tr>
<td>mousemove</td>
<td>&#x5F53;&#x9F20;&#x6807;&#x5728;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x5185;&#x90E8;&#x79FB;&#x52A8;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>mouseenter</td>
<td>&#x8FDB;&#x5165;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x65F6;&#x89E6;&#x53D1; &#xFF0C;&#x8FDB;&#x5165;&#x5B50;&#x8282;&#x70B9;&#x4E0D;&#x4F1A;&#x89E6;&#x53D1;&#x8FD9;&#x4E2A;&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>mouseover</td>
<td>&#x8FDB;&#x5165;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x65F6;&#x89E6;&#x53D1; &#xFF0C; &#x8FDB;&#x5165;&#x5B50;&#x8282;&#x70B9;&#x4F1A;&#x518D;&#x4E00;&#x6B21;&#x89E6;&#x53D1;&#x8FD9;&#x4E2A;&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>mouseout</td>
<td>&#x79BB;&#x5F00;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x65F6;&#x89E6;&#x53D1;&#xFF0C;&#x79BB;&#x5F00;&#x7236;&#x8282;&#x70B9;&#x4E5F;&#x4F1A;&#x89E6;&#x53D1;&#x8FD9;&#x4E2A;&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>mouseleave</td>
<td>&#x79BB;&#x5F00;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x65F6;&#x89E6;&#x53D1; &#xFF0C;&#x79BB;&#x5F00;&#x7236;&#x8282;&#x70B9;&#x4E0D;&#x4F1A;&#x89E6;&#x53D1;&#x8FD9;&#x4E2A;&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>contextmenu</td>
<td>&#x6309;&#x4E0B;&#x9F20;&#x6807;&#x53F3;&#x952E;&#x65F6;</td>
</tr>
<tr>
<td>wheel</td>
<td>&#x6EDA;&#x52A8;&#x9F20;&#x6807;&#x7684;&#x6EDA;&#x8F6E;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
</tbody>
</table>
<h3 id="&#x952E;&#x76D8;&#x4E8B;&#x4EF6;"><a name="&#x952E;&#x76D8;&#x4E8B;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x952E;&#x76D8;&#x4E8B;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10.2. &#x952E;&#x76D8;&#x4E8B;&#x4EF6;</h3>
<table>
<thead>
<tr>
<th>&#x540D;&#x79F0;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>keydown</td>
<td>&#x6309;&#x4E0B;&#x952E;&#x76D8;</td>
</tr>
<tr>
<td>keypress</td>
<td>&#x6309;&#x4E0B;&#x6709;&#x503C;&#x7684;&#x952E;&#x65F6;&#x89E6;&#x53D1;&#xFF0C; <br> &#x5373;&#x6309;&#x4E0B; Ctrl&#x3001;Alt&#x3001;Shift&#x3001;Meta &#x8FD9;&#x6837;&#x65E0;&#x503C;&#x7684;&#x952E;&#xFF0C;&#x8FD9;&#x4E2A;&#x4E8B;&#x4EF6;&#x4E0D;&#x4F1A;&#x89E6;&#x53D1;&#x3002;</td>
</tr>
<tr>
<td>keyup</td>
<td>&#x677E;&#x5F00;&#x952E;&#x76D8;&#x65F6;&#x89E6;&#x53D1;&#x8BE5;&#x4E8B;&#x4EF6;</td>
</tr>
</tbody>
</table>
<h3 id="&#x8868;&#x5355;&#x4E8B;&#x4EF6;"><a name="&#x8868;&#x5355;&#x4E8B;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x8868;&#x5355;&#x4E8B;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10.3. &#x8868;&#x5355;&#x4E8B;&#x4EF6;</h3>
<table>
<thead>
<tr>
<th>&#x540D;&#x79F0;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>input</td>
<td>&#x53EA;&#x8981;&#x503C;&#x53D1;&#x751F;&#x53D8;&#x5316;&#xFF0C;&#x4E5F;&#x4F1A;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>select</td>
<td></td>
</tr>
<tr>
<td>Change</td>
<td></td>
</tr>
<tr>
<td>invalid</td>
<td></td>
</tr>
<tr>
<td>reset</td>
<td></td>
</tr>
<tr>
<td>submit</td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="&#x89E6;&#x6478;&#x4E8B;&#x4EF6;"><a name="&#x89E6;&#x6478;&#x4E8B;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x89E6;&#x6478;&#x4E8B;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10.4. &#x89E6;&#x6478;&#x4E8B;&#x4EF6;</h3>
<pre><code class="lang-xml">Touch &#xFF1A;&#x4E00;&#x4E2A;&#x89E6;&#x6478;&#x70B9; .
TouchList&#xFF1A;&#x591A;&#x4E2A;&#x89E6;&#x6478;&#x70B9;&#x7684;&#x96C6;&#x5408;
TouchEvent&#xFF1A;&#x89E6;&#x6478;&#x5F15;&#x53D1;&#x7684;&#x4E8B;&#x4EF6;&#x5B9E;&#x4F8B;
</code></pre>
<table>
<thead>
<tr>
<th>&#x540D;&#x79F0;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>drag</td>
<td>&#x62D6;&#x62C9;&#x8FC7;&#x7A0B;&#x4E2D;</td>
</tr>
<tr>
<td>dragstart</td>
<td></td>
</tr>
<tr>
<td>dragend</td>
<td></td>
</tr>
<tr>
<td>dragenter</td>
<td></td>
</tr>
<tr>
<td>dragover</td>
<td></td>
</tr>
<tr>
<td>dragleave</td>
<td></td>
</tr>
<tr>
<td>drop</td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="&#x5176;&#x4ED6;&#x4E8B;&#x4EF6;"><a name="&#x5176;&#x4ED6;&#x4E8B;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x5176;&#x4ED6;&#x4E8B;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10.5. &#x5176;&#x4ED6;&#x4E8B;&#x4EF6;</h3>
<table>
<thead>
<tr>
<th>&#x540D;&#x79F0;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>beforeunload</td>
<td>&#x5728;&#x7A97;&#x53E3;&#x3001;&#x6587;&#x6863;&#x3001;&#x5404;&#x79CD;&#x8D44;&#x6E90;&#x5C06;&#x8981;&#x5378;&#x8F7D;&#x524D;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>unload</td>
<td>&#x5728;&#x7A97;&#x53E3;&#x5173;&#x95ED;&#x6216;&#x8005;document&#x5BF9;&#x8C61;&#x5C06;&#x8981;&#x5378;&#x8F7D;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>load</td>
<td>&#x5728;&#x9875;&#x9762;&#x6216;&#x67D0;&#x4E2A;&#x8D44;&#x6E90;&#x52A0;&#x8F7D;&#x6210;&#x529F;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>error</td>
<td>&#x5728;&#x9875;&#x9762;&#x6216;&#x8D44;&#x6E90;&#x52A0;&#x8F7D;&#x5931;&#x8D25;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>pageshow</td>
<td>&#x5728;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>pagehide</td>
<td>&#x5F53;&#x7528;&#x6237;&#x901A;&#x8FC7;&#x201C;&#x524D;&#x8FDB;/&#x540E;&#x9000;&#x201D;&#x6309;&#x94AE;&#xFF0C;&#x79BB;&#x5F00;&#x5F53;&#x524D;&#x9875;&#x9762;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>popstate</td>
<td></td>
</tr>
<tr>
<td>hashchange</td>
<td></td>
</tr>
<tr>
<td>readystatechange</td>
<td></td>
</tr>
<tr>
<td>scroll</td>
<td>&#x5728;&#x6587;&#x6863;&#x6216;&#x6587;&#x6863;&#x5143;&#x7D20;&#x6EDA;&#x52A8;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>resize</td>
<td>&#x5728;&#x6539;&#x53D8;&#x6D4F;&#x89C8;&#x5668;&#x7A97;&#x53E3;&#x5927;&#x5C0F;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>fullscreenchange</td>
<td>&#x8FDB;&#x5165;&#x6216;&#x9000;&#x51FA;&#x5168;&#x5C4F;&#x72B6;&#x6001;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>fullscreenerror</td>
<td>&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x65E0;&#x6CD5;&#x5207;&#x6362;&#x5230;&#x5168;&#x5C4F;&#x72B6;&#x6001;&#x65F6;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>cut</td>
<td>&#x5C06;&#x9009;&#x4E2D;&#x7684;&#x5185;&#x5BB9;&#x4ECE;&#x6587;&#x6863;&#x4E2D;&#x79FB;&#x9664;&#xFF0C;&#x52A0;&#x5165;&#x526A;&#x8D34;&#x677F;&#x65F6;&#x89E6;&#x53D1;&#x3002;</td>
</tr>
<tr>
<td>copy</td>
<td>&#x8FDB;&#x884C;&#x590D;&#x5236;&#x52A8;&#x4F5C;&#x65F6;&#x89E6;&#x53D1;&#x3002;</td>
</tr>
<tr>
<td>paste</td>
<td>&#x526A;&#x8D34;&#x677F;&#x5185;&#x5BB9;&#x7C98;&#x8D34;&#x5230;&#x6587;&#x6863;&#x540E;&#x89E6;&#x53D1;</td>
</tr>
<tr>
<td>focus</td>
<td>&#x5143;&#x7D20;&#x8282;&#x70B9;&#x83B7;&#x5F97;&#x7126;&#x70B9;&#x540E;&#x89E6;&#x53D1;&#xFF0C;&#x8BE5;&#x4E8B;&#x4EF6;&#x4E0D;&#x4F1A;&#x5192;&#x6CE1;&#x3002;</td>
</tr>
<tr>
<td>blur</td>
<td>&#x5143;&#x7D20;&#x8282;&#x70B9;&#x5931;&#x53BB;&#x7126;&#x70B9;&#x540E;&#x89E6;&#x53D1;&#xFF0C;&#x8BE5;&#x4E8B;&#x4EF6;&#x4E0D;&#x4F1A;&#x5192;&#x6CE1;&#x3002;</td>
</tr>
<tr>
<td>focusin</td>
<td>&#x5143;&#x7D20;&#x8282;&#x70B9;&#x5C06;&#x8981;&#x83B7;&#x5F97;&#x7126;&#x70B9;&#x65F6;&#x89E6;&#x53D1;&#xFF0C;&#x53D1;&#x751F;&#x5728;focus&#x4E8B;&#x4EF6;&#x4E4B;&#x524D;&#x3002;&#x8BE5;&#x4E8B;&#x4EF6;&#x4F1A;&#x5192;&#x6CE1;&#x3002;</td>
</tr>
<tr>
<td>focusout</td>
<td>&#x5143;&#x7D20;&#x8282;&#x70B9;&#x5C06;&#x8981;&#x5931;&#x53BB;&#x7126;&#x70B9;&#x65F6;&#x89E6;&#x53D1;&#xFF0C;&#x53D1;&#x751F;&#x5728;blur&#x4E8B;&#x4EF6;&#x4E4B;&#x524D;&#x3002;&#x8BE5;&#x4E8B;&#x4EF6;&#x4F1A;&#x5192;&#x6CE1;&#x3002;</td>
</tr>
</tbody>
</table>
<h3 id="&#x62D6;&#x62C9;&#x4E8B;&#x4EF6;"><a name="&#x62D6;&#x62C9;&#x4E8B;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x62D6;&#x62C9;&#x4E8B;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10.6. &#x62D6;&#x62C9;&#x4E8B;&#x4EF6;</h3>
<p>&#x62D6;&#x62C9;&#x6307;&#x7684;&#x662F;&#xFF0C;&#x7528;&#x6237;&#x5728;&#x67D0;&#x4E2A;&#x5BF9;&#x8C61;&#x4E0A;&#x6309;&#x4E0B;&#x9F20;&#x6807;&#x952E;&#x4E0D;&#x653E;&#xFF0C;&#x62D6;&#x52A8;&#x5B83;&#x5230;&#x53E6;&#x4E00;&#x4E2A;&#x4F4D;&#x7F6E;&#xFF0C;&#x7136;&#x540E;&#x91CA;&#x653E;&#x9F20;&#x6807;&#x952E;&#xFF0C;&#x5C06;&#x8BE5;&#x5BF9;&#x8C61;&#x653E;&#x5728;&#x90A3;&#x91CC;&#x3002;</p>
<pre><code class="lang-xml">draggable&#x5C5E;&#x6027;&#x53EF;&#x7528;&#x4E8E;&#x4EFB;&#x4F55;&#x5143;&#x7D20;&#x8282;&#x70B9; &#x3002;&#x56FE;&#x7247;&#x548C;&#x94FE;&#x63A5;&#x9ED8;&#x8BA4;&#x53EF;&#x4EE5;&#x62D6;&#x62C9;&#x3002;
&#x4E00;&#x65E6;&#x67D0;&#x4E2A;&#x5143;&#x7D20;&#x8282;&#x70B9; draggable=true&#xFF0C;&#x5C31;&#x65E0;&#x6CD5;&#x518D;&#x7528;&#x9F20;&#x6807;&#x9009;&#x4E2D;&#x8BE5;&#x8282;&#x70B9;&#x5185;&#x90E8;&#x7684;&#x6587;&#x5B57;&#x6216;&#x5B50;&#x8282;&#x70B9;&#x4E86;&#x3002;
</code></pre>
<p><br></p>
<h2 id="&#x8FD0;&#x7B97;&#x7B26;"><a name="&#x8FD0;&#x7B97;&#x7B26;" class="anchor-navigation-ex-anchor" href="#&#x8FD0;&#x7B97;&#x7B26;"><i class="fa fa-link" aria-hidden="true"></i></a>1.11. &#x8FD0;&#x7B97;&#x7B26;</h2>
<pre><code class="lang-JavaScript">&#x6307;&#x6570;&#x8FD0;&#x7B97;&#x7B26;  **
<span class="hljs-number">2</span> ** <span class="hljs-number">4</span> <span class="hljs-comment">// 16</span>
</code></pre>
<p><br></p>
<h2 id="&#x6BD4;&#x8F83;"><a name="&#x6BD4;&#x8F83;" class="anchor-navigation-ex-anchor" href="#&#x6BD4;&#x8F83;"><i class="fa fa-link" aria-hidden="true"></i></a>1.12. &#x6BD4;&#x8F83;</h2>
<pre><code class="lang-xml">==
&#x4E24;&#x8FB9;&#x503C;&#x7C7B;&#x578B;&#x4E0D;&#x540C;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5148;&#x8FDB;&#x884C;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#xFF0C;&#x518D;&#x6BD4;&#x8F83;&#xFF1B;

===
&#x4E25;&#x683C;&#x6BD4;&#x8F83;&#x8FD0;&#x7B97;&#x7B26;&#xFF0C;&#x4E0D;&#x505A;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#xFF0C;&#x7C7B;&#x578B;&#x4E0D;&#x540C;&#x5C31;&#x662F;&#x4E0D;&#x7B49;&#xFF1B;


Object.is(&apos;a&apos;, &apos;a&apos;)
&#x884C;&#x4E3A;&#x4E0E;===&#x57FA;&#x672C;&#x4E00;&#x81F4;&#x3002;
&#x9664;&#x4E86;&#xFF1A; +0&#x4E0D;&#x7B49;&#x4E8E;-0 &#xFF0C; NaN&#x7B49;&#x4E8E;&#x81EA;&#x8EAB;&#x3002;
</code></pre>
<p><br></p>
<h2 id="if-else-&#x6761;&#x4EF6;&#x8BED;&#x53E5;"><a name="if-else-&#x6761;&#x4EF6;&#x8BED;&#x53E5;" class="anchor-navigation-ex-anchor" href="#if-else-&#x6761;&#x4EF6;&#x8BED;&#x53E5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.13. if else &#x6761;&#x4EF6;&#x8BED;&#x53E5;</h2>
<pre><code class="lang-JavaScript"><span class="hljs-keyword">if</span> (m === <span class="hljs-number">3</span>) {
} <span class="hljs-keyword">else</span> {
}
</code></pre>
<p><br></p>
<h2 id="switch-&#x8BED;&#x53E5;"><a name="switch-&#x8BED;&#x53E5;" class="anchor-navigation-ex-anchor" href="#switch-&#x8BED;&#x53E5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.14. switch &#x8BED;&#x53E5;</h2>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> x = <span class="hljs-number">1</span>;
<span class="hljs-keyword">switch</span> (x) {
  <span class="hljs-keyword">case</span> <span class="hljs-number">1</span>:
    <span class="hljs-keyword">break</span> ;
  <span class="hljs-keyword">default</span>:
    <span class="hljs-keyword">break</span> ;
}
</code></pre>
<p><br></p>
<h2 id="for-&#x5FAA;&#x73AF;"><a name="for-&#x5FAA;&#x73AF;" class="anchor-navigation-ex-anchor" href="#for-&#x5FAA;&#x73AF;"><i class="fa fa-link" aria-hidden="true"></i></a>1.15. for &#x5FAA;&#x73AF;</h2>
<p>for (var i = 0; i &lt; 100; i++) {
}</p>
<pre><code>


&lt;br&gt;
## while &#x5FAA;&#x73AF;
```JavaScript
var i = 0;
while (i &lt; 100) {
  i = i + 1;
}
</code></pre><p><br></p>
<h2 id="do--while-&#x5FAA;&#x73AF;"><a name="do--while-&#x5FAA;&#x73AF;" class="anchor-navigation-ex-anchor" href="#do--while-&#x5FAA;&#x73AF;"><i class="fa fa-link" aria-hidden="true"></i></a>1.16. do ... while &#x5FAA;&#x73AF;</h2>
<pre><code class="lang-JavaScript"><span class="hljs-keyword">do</span> {
 ...
} <span class="hljs-keyword">while</span> (&#x6761;&#x4EF6;);
</code></pre>
<p><br></p>
<h2 id="break-&#x548C;-continue-&#x8BED;&#x53E5;"><a name="break-&#x548C;-continue-&#x8BED;&#x53E5;" class="anchor-navigation-ex-anchor" href="#break-&#x548C;-continue-&#x8BED;&#x53E5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.17. break &#x548C; continue &#x8BED;&#x53E5;</h2>
<p>break&#x8BED;&#x53E5;&#x7528;&#x4E8E;&#x8DF3;&#x51FA;&#x4EE3;&#x7801;&#x5757;&#x6216;&#x5FAA;&#x73AF;&#x3002;</p>
<p>continue&#x8BED;&#x53E5;&#x7528;&#x4E8E;&#x7ACB;&#x5373;&#x7EC8;&#x6B62;&#x672C;&#x8F6E;&#x5FAA;&#x73AF;&#xFF0C;&#x8FD4;&#x56DE;&#x5FAA;&#x73AF;&#x7ED3;&#x6784;&#x7684;&#x5934;&#x90E8;&#xFF0C;&#x5F00;&#x59CB;&#x4E0B;&#x4E00;&#x8F6E;&#x5FAA;&#x73AF;&#x3002;</p>
<p><br></p>
<h2 id="&#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;"><a name="&#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;" class="anchor-navigation-ex-anchor" href="#&#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;"><i class="fa fa-link" aria-hidden="true"></i></a>1.18. &#x4E09;&#x5143;&#x8FD0;&#x7B97;&#x7B26;</h2>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> myVar;
<span class="hljs-built_in">console</span>.log(
  myVar ?
  <span class="hljs-string">&apos;myVar has a value&apos;</span> :
  <span class="hljs-string">&apos;myVar does not have a value&apos;</span>
)
</code></pre>
<p><br></p>
<h2 id="label&#x6807;&#x7B7E;"><a name="label&#x6807;&#x7B7E;" class="anchor-navigation-ex-anchor" href="#label&#x6807;&#x7B7E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.19. label&#x6807;&#x7B7E;</h2>
<p>&#x6807;&#x7B7E;&#x901A;&#x5E38;&#x4E0E;break&#x8BED;&#x53E5;&#x548C;continue&#x8BED;&#x53E5;&#x914D;&#x5408;&#x4F7F;&#x7528;&#xFF0C;&#x8DF3;&#x51FA;&#x7279;&#x5B9A;&#x7684;&#x5FAA;&#x73AF;&#x3002;</p>
<pre><code class="lang-javascript">
top:
  <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; <span class="hljs-number">3</span>; i++){
    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> j = <span class="hljs-number">0</span>; j &lt; <span class="hljs-number">3</span>; j++){
      <span class="hljs-keyword">if</span> (i === <span class="hljs-number">1</span> &amp;&amp; j === <span class="hljs-number">1</span>) {
        <span class="hljs-comment">// &#x8DF3;&#x51FA;&#x5916;&#x5C42;&#x5FAA;&#x73AF;</span>
        <span class="hljs-keyword">break</span> top;
      }

    }
  }


  foo: {
    <span class="hljs-built_in">console</span>.log(<span class="hljs-number">1</span>);
    <span class="hljs-comment">// &#x8DF3;&#x51FA;&#x4EE3;&#x7801;&#x5757;</span>
    <span class="hljs-keyword">break</span> foo;
  }


  top:
  <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; <span class="hljs-number">3</span>; i++){
    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> j = <span class="hljs-number">0</span>; j &lt; <span class="hljs-number">3</span>; j++){
      <span class="hljs-keyword">if</span> (i === <span class="hljs-number">1</span> &amp;&amp; j === <span class="hljs-number">1</span>) {
      <span class="hljs-comment">// &#x8FDB;&#x5165;&#x4E0B;&#x4E00;&#x8F6E;&#x5916;&#x5C42;&#x5FAA;&#x73AF;</span>
      <span class="hljs-keyword">continue</span> top;
    }
    }
  }
</code></pre>
<p><br></p>
<h2 id="&#x9519;&#x8BEF;"><a name="&#x9519;&#x8BEF;" class="anchor-navigation-ex-anchor" href="#&#x9519;&#x8BEF;"><i class="fa fa-link" aria-hidden="true"></i></a>1.20. &#x9519;&#x8BEF;</h2>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> txt=<span class="hljs-string">&quot;&quot;</span>;
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">message</span>(<span class="hljs-params"></span>)
</span>{
    <span class="hljs-keyword">try</span> {
        adddlert(<span class="hljs-string">&quot;Welcome guest!&quot;</span>);
    } <span class="hljs-keyword">catch</span>(err) {
        txt+=<span class="hljs-string">&quot;&#x9519;&#x8BEF; &quot;</span> + err.message  ;
    }
}
</code></pre>
<p><br></p>
<h2 id="&#x8868;&#x5355;&#x9A8C;&#x8BC1;"><a name="&#x8868;&#x5355;&#x9A8C;&#x8BC1;" class="anchor-navigation-ex-anchor" href="#&#x8868;&#x5355;&#x9A8C;&#x8BC1;"><i class="fa fa-link" aria-hidden="true"></i></a>1.21. &#x8868;&#x5355;&#x9A8C;&#x8BC1;</h2>
<pre><code class="lang-JavaScript">onsubmit=<span class="hljs-string">&quot;return validateForm()&quot;</span> method=<span class="hljs-string">&quot;post&quot;</span>

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">validateForm</span>(<span class="hljs-params"></span>) </span>{
    <span class="hljs-keyword">var</span> x = <span class="hljs-built_in">document</span>.forms[<span class="hljs-string">&quot;myForm&quot;</span>][<span class="hljs-string">&quot;fname&quot;</span>].value;
    <span class="hljs-keyword">if</span> (x == <span class="hljs-literal">null</span> || x == <span class="hljs-string">&quot;&quot;</span>) {
        alert(<span class="hljs-string">&quot;&#x9700;&#x8981;&#x8F93;&#x5165;&#x540D;&#x5B57;&#x3002;&quot;</span>);
        <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;
    }
}
</code></pre>
<p><br></p>
<h2 id="&#x5176;&#x4ED6;"><a name="&#x5176;&#x4ED6;" class="anchor-navigation-ex-anchor" href="#&#x5176;&#x4ED6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.22. &#x5176;&#x4ED6;</h2>
<pre><code class="lang-javascript">&lt;a href=&quot;javascript&#xFF1A;void(0)&quot; onClick=&quot;window.open()&quot;&gt;
&#x8868;&#x793A;url&#x7684;&#x5185;&#x5BB9;&#x901A;&#x8FC7;js&#x6267;&#x884C;&#x3002;void(0)&#x8868;&#x793A;&#x4E0D;&#x4F5C;&#x4EFB;&#x4F55;&#x64CD;&#x4F5C;&#xFF0C;&#x8FD9;&#x6837;&#x4F1A;&#x9632;&#x6B62;&#x94FE;&#x63A5;&#x8DF3;&#x8F6C;&#x5230;&#x5176;&#x4ED6;&#x9875;&#x9762;&#x3002;
&#x8FD9;&#x4E48;&#x505A;&#x5F80;&#x5F80;&#x662F;&#x4E3A;&#x4E86;&#x4FDD;&#x7559;&#x94FE;&#x63A5;&#x7684;&#x6837;&#x5F0F;&#xFF0C;&#x4F46;&#x4E0D;&#x8BA9;&#x94FE;&#x63A5;&#x6267;&#x884C;&#x5B9E;&#x9645;&#x64CD;&#x4F5C;&#xFF0C;

&lt;a href=&quot;#&quot;&gt;&#x70B9;&#x51FB;&lt;/a&gt;
&#x70B9;&#x51FB;&#x540E;&#x4F1A;&#x56DE;&#x5230;&#x7F51;&#x9762;&#x9876;&#x90E8;

//&#x5237;&#x65B0;
location.reload() ;
window.location.reload() ;
</code></pre>
<footer class="page-footer"><span class="copyright">&#x65E0;&#x7248;&#x6743; &#x53EF;&#x4EE5;&#x65E0;&#x9650;&#x5236;&#x4F7F;&#x7528;&#xFF01; all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x66F4;&#x65B0;&#x65F6;&#x95F4;&#xFF1A;
2018-10-31 10:36:32
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="友情链接.html" class="navigation navigation-prev " aria-label="Previous page: 友情链接">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="html5.html" class="navigation navigation-next " aria-label="Next page: html5">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"web前端","level":"1.3","depth":1,"next":{"title":"html5","level":"1.3.1","depth":2,"path":"chinese/web/html5.md","ref":"chinese/web/html5.md","articles":[]},"previous":{"title":"友情链接","level":"1.2","depth":1,"path":"chinese/web/友情链接.md","ref":"chinese/web/友情链接.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","search-plus","todo","anchor-navigation-ex","copy-code-button","fontsettings","tbfed-pagefooter","donate","local-video","splitter","favicon","theme-comscore","local-video"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"无版权 可以无限制使用！","modify_label":"该文件更新时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"todo":{},"splitter":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"http://oyru0ayig.bkt.clouddn.com/201803011956_osChina_支付宝收款码.png","alipayText":"支付宝打赏","button":"打赏","title":"","wechat":"http://oyru0ayig.bkt.clouddn.com/201803011956_osChina_微信收款码.png","wechatText":"微信打赏"},"fontsettings":{"family":"sans","size":2,"theme":"sepia"},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"favicon":{"shortcut":"assets/images/favicon.ico","bookmark":"assets/images/favicon.ico"},"theme-comscore":{},"local-video":{},"copy-code-button":{},"sharing":{"all":["facebook","google","twitter","weibo","instapaper"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"search-plus":{}},"theme":"default","author":"Aivin","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Aivin开发笔记","language":"zh-hans","gitbook":"*","description":"Aivin开发笔记"},"file":{"path":"chinese/web/js.md","mtime":"2018-10-31T02:36:32.170Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-12T07:42:16.699Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

